﻿using SqlSugar;

namespace net8.Models.XiTong
{
    /// <summary>
    /// 菜单表
    /// </summary>
    public class XtMenu : Base
    {
        public Guid ParentId { get; set; }
        public string MenuName { get; set; }
        public string MenuPath { get; set; }
        public string MenuIcon { get; set; }
        public int MenuOrder { get; set; }

        public List<XtMenu> Children { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(XtPermission.MenuId))]
        public List<XtPermission> PermissionList { get; set; }
    }
}
